-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add live feedback storage and statistics #7497
Add live feedback storage and statistics #7497
Conversation
889de1f
to
389bdac
Compare
389bdac
to
063e585
Compare
302abf2
to
fb7f80f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @syoopie good job on your PR! It's quite well made..
I have left some comments inside this PR, please attend to them and apply the changes accordingly. If you have any further inquiries, please reply to my comments and if you don't understand how to apply those changes, please don't hesitate to reach out to me
Other than that, here are some advise for your future PRs:
- please properly name your commit. We have the convention written in our Commit Guideline. Not sure if you have read this before, but please learn about this
- avoid creating a new commit that are actually merely fixing the commit you just made previously that are still within the same PR. If you have committed several more commits then realising your mistake, instead do
git rebase
and thenedit
the respective commit.. Please take a look at the following git rebase guideline to know how to use git rebase properly
Please let me know when you're finished polishing your code, and then request for my re-review for me to look more into your PR
app/views/course/statistics/assessments/main_statistics.json.jbuilder
Outdated
Show resolved
Hide resolved
...les/course/assessment/pages/AssessmentStatistics/LiveFeedbackHistory/LiveFeedbackDetails.tsx
Outdated
Show resolved
Hide resolved
...course/assessment/pages/AssessmentStatistics/LiveFeedbackHistory/LiveFeedbackHistoryPage.tsx
Outdated
Show resolved
Hide resolved
0f76c0b
to
d5e7640
Compare
app/services/course/assessment/answer/programming_codaveri_async_feedback_service.rb
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveHelpStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
bd8c12a
to
85bdef9
Compare
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveHelpStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveHelpStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveHelpStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
85bdef9
to
e1cb9b4
Compare
43e0ae0
to
c85a081
Compare
c85a081
to
4035cd4
Compare
4414030
to
a5f004e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your last two commits should be squashed into their respective associated commits.
i.e. 2nd last and 3rd last commits are semantically grouped together,
last commit and "feat(live-feedback): add live feedback saving" should be grouped together.
client/app/bundles/course/assessment/pages/AssessmentStatistics/classNameUtils.ts
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveFeedbackStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveFeedbackStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
client/app/bundles/course/assessment/pages/AssessmentStatistics/LiveFeedbackStatisticsTable.tsx
Outdated
Show resolved
Hide resolved
app/controllers/course/assessment/submission/submissions_controller.rb
Outdated
Show resolved
Hide resolved
New Tables: 1. course_assessment_live_feedbacks 2. course_assessment_live_feedback_code 3. course_assessment_live_feedback_comments Related models have also been updated. These include: users course_assessments course_assessment_questions
a5f004e
to
3daa72d
Compare
add new route for getting live feedback stats add new live_feedback_concern refactored some code in assessments_controller as it was used for live feedback stats as well add new json return format for live feedback stats
refactored for a wider range of usability fix erroneous comments add new function to get class for live feedback cells previously cells were coloured linearly based on a max number new colouring only applies this gradient to the lower 75% of the data upper 25% is all coloured the most intense shade of red
add new tab to assessment statistics if live help is enabled for assessment add new types for live feedback statistics add call to new route for getting live feedback statistics refactor functionality for getting jointGroupsName refactor functionality for translating status both refactors have their commented out typescript equivalent left inside in file
this commit used to be to fix a breaking change from codaveri regarding categories, but the change has been made by another commit that is already merged the change has been removed from this commit during rebase and only other random changes are left remove some random commented code in codaveri-async-feedback-service
add frontend logic for returning live feedback once retrieved add backend logic and routes for saving live feedback
individual live feedback histories need this information to be retrieved
add dialog to show live feedback history on the live feedback statistics page add routes and backend for retrieving live feedback history
Change assessments factory to give unique question weights when creating questions This is to assist in live feedback tests as weights are needed to order the questions
abstract out the translations of some assessment stsatistics files add translations and localizations for the associated translations
- conform to new standard, all user facing "verbs" are "Get Help" - "Get Help" will describe the act of getting live feedback - all other usage of the terms "Live Help" and "Get Help" will instead be "Live Feedback"
add custom slider with more visible marks and larger height
- sql queries drop from 99 -> ~30
3daa72d
to
3e9ba1a
Compare
Add support for saving live feedback and displaying it in the assessment statistics page.
Workflow for saving:
course_assessment_live_feedbacks
is created and current code states (course_assessment_live_feedback_code
) are savedcourse_assessment_live_feedback_comments
)course_assessment_live_feedback_comments
)Schema Changes: Added 3 new tables
feedback_id
under thecourse_assessments_live_feedbacks
table corresponds to thetransaction_id
provided by codaveri. This is to ensure traceability.The schema is separated as such so that each feedback request can accomadate multiple different code files, and each code file can have multiple comments.
New Live Feedback statistics page:
New Live Feedback History Dialog
Other Notes:
This PR also standardises the terminology surrounding the live feedback function.